package cn.cdeden.system.domain.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.apache.commons.lang3.StringUtils;

/**
 * @ProjectName : ecm_hou
 * @Package : com.cdyd.ecm.modules.label.domain
 * @ClassName : LabelTypeEnums
 * @Author : Yu.
 * @Description : // 标签分类
 * @Date : 2023/7/20 11:13
 * @Version : 1.0
 */
@AllArgsConstructor
@Getter
public enum FileLabelTypeEnums {


    user("user","用户"),
    sys("sys","系统"),
    team("team","团队"),



    ;
    private final String code;
    private final String state;

    public static FileLabelTypeEnums find(String type) {
        for (FileLabelTypeEnums value : FileLabelTypeEnums.values()) {
            if (StringUtils.equalsIgnoreCase(type,value.getCode())) {
                return value;
            }
        }
        return null;
    }
}
